<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page contentType="text/html;charset=utf-8" deferredSyntaxAllowedAsLiteral="true"%>
<%@ page import="java.util.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<%	
    String path = request.getContextPath();
	String url = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/"+path;
	String strUserID = ""; 
	String strType = "";
	String strLoginDate = "";
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<title>上海市注册会计师协会管理平台</title>
<link href="<%=url%>/images/favicon.ico" rel="shortcut icon" />
<link href="<%=url%>/themes/default/style.css?v=1.1" rel="stylesheet" type="text/css" media="screen"/>
<link href="<%=url%>/themes/css/core.css?v=1.0" rel="stylesheet" type="text/css" media="screen"/>
<link href="<%=url%>/themes/css/print.css?v=1.0" rel="stylesheet" type="text/css" media="print"/>
<link href="<%=url%>/js/uploadify/uploadify.css" rel="stylesheet" type="text/css" media="screen"/>

<!--[if IE]>
<link href="../themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
<![endif]-->

<style>
#cal{width:434px;border:1px solid #c3d9ff;font-size:12px;margin:8px 0 0 15px;}
#cal #top{height:29px;line-height:29px;background:#e7eef8;color:#003784;padding-left:70px;}
#cal #top select{font-size:12px;}
#cal #top input{padding:0;}
#cal ul#wk{margin:0;padding:0;height:25px;}
#cal ul#wk li{float:left;width:60px;text-align:center;line-height:25px;list-style:none;}
#cal ul#wk li b{font-weight:normal;color:#c60b02;}
#cal #cm{clear:left;border-top:1px solid #ddd;border-bottom:1px dotted #ddd;position:relative;}
#cal #cm .cell{position:absolute;width:42px;height:36px;text-align:center;margin:0 0 0 9px;}
#cal #cm .cell .so{font:bold 16px arial;}
#cal #bm{text-align:right;height:24px;line-height:24px;padding:0 13px 0 0;}
#cal #bm a{color:7977ce;}
#cal #fd{display:none;position:absolute;border:1px solid #dddddf;background:#feffcd;padding:10px;line-height:21px;width:150px;}
#cal #fd b{font-weight:normal;color:#c60a00;}

.pos{height:25px;padding-left:25px;margin-left:0px;margin-bottom:3px;margin-top:20px;text-align:left;font-weight:900;border-bottom:3px solid #014ba0;background:url('WebRoot/images/manager/bg1.png') no-repeat -5px -1227px;}
.pos a{color:#1759b9;}

.hlist1 li{clear:both;float:none;height:30px;padding-left:15px;line-height:30px; vertical-align:middle;border-bottom:1px dashed #ccc;overflow:hidden; -o-text-overflow: ellipsis;text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden;*zoom:1;}
.hlist1 li a{color:#000;}
.hlist1 li a:hover{color:#1759b9;}
.hlist1 li span{float:left;width:575px;display:inline;overflow:hidden; }
.hlist1 li span a{overflow:hidden; -o-text-overflow: ellipsis;text-overflow:ellipsis;white-space:nowrap;}
</style>

<script src="<%=url%>/js/speedup.js" type="text/javascript"></script>
<script src="<%=url%>/js/jquery.1.8.2.js?v=1.0" type="text/javascript"></script>
<script src="<%=url%>/js/jquery.cookie.js" type="text/javascript"></script>
<script src="<%=url%>/js/jquery.validate.js?v=1.01" type="text/javascript"></script>
<script src="<%=url%>/js/jquery.bgiframe.js" type="text/javascript"></script>
<script src="<%=url%>/js/common/common.js?v=1.5" type="text/javascript"></script>

<script src="<%=url%>/js/dwz.core.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.util.date.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.validate.method.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.regional.zh.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.barDrag.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.drag.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.tree.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.accordion.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.ui.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.theme.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.switchEnv.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.alertMsg.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.contextmenu.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.navTab.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.tab.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.resize.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.dialog.js?v=1.1" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.dialogDrag.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.sortDrag.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.cssTable.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.stable.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.taskBar.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.ajax.js?v=1.0" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.pagination.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.database.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.datepicker.js?v=1.1" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.effects.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.panel.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.checkbox.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.history.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.combox.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.print.js" type="text/javascript"></script>
<script src="<%=url%>/js/dwz.regional.zh.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
	DWZ.init("dwz.frag.xml", {
		loginUrl:"login_dialog.html", loginTitle:"登录",		// 弹出登录对话框
		//loginUrl:"login.html",							// 跳到登录页面
		statusCode:{ok:200, error:300, timeout:301}, 		//【可选】
		//pageInfo:{pageNum:"pageNum", numPerPage:"numPerPage", orderField:"orderField", orderDirection:"orderDirection"}, //【可选】
		debug:false,										// 调试模式 【true|false】
		callback:function(){
			initEnv();
			$("#themeList").theme({themeBase:"themes"}); 	// themeBase 相对于index页面的主题base路径
		}
	});
	
	//加载记事本数据
	getnotebookdatalist();
});

//加载记事本数据
function getnotebookdatalist(){
	var notebooklist = "";
	$.post("notebook/getNoteBookQueryList.do",{},function(data){    
    	var obj = eval("("+data+")");    	
		if(obj.notebookdatalist.length>0){
			for(var i=0;i<obj.notebookdatalist.length;i++){
				notebooklist+="<tr>";
				if(obj.notebookdatalist[i].nbdate==obj.notebookdatalist[i].cdate){
					notebooklist+="<td style=\"color:#FF0000;\" align=\"center\">"+(i+1)+"</td>";
					notebooklist+="<td style=\"color:#FF0000;\" align=\"center\">"+obj.notebookdatalist[i].nbdate+"</td>";
					notebooklist+="<td style=\"color:#FF0000;\">"+obj.notebookdatalist[i].nb_content+"</td>";											
					notebooklist+="<td>";
					notebooklist+="<a style=\"margin-left:10px;\" title=\"查看\" target=\"dialog\" mask=\"true\" width=\"500\" height=\"300\" href=\"notebook/getNoteBookView.do?nbid="+obj.notebookdatalist[i].nb_id+"\" class=\"btnView\">查看</a>";
					notebooklist+="<a style=\"margin-left:5px;\" href=\"javascript:void(0)\" onclick=\"donotebookdelete('"+obj.notebookdatalist[i].nb_id+"')\" class=\"btnDel\">删除</a>";
					notebooklist+="</td>";
				}					
				else {
					notebooklist+="<td align=\"center\">"+(i+1)+"</td>";
					notebooklist+="<td align=\"center\">"+obj.notebookdatalist[i].nbdate+"</td>";
					notebooklist+="<td>"+obj.notebookdatalist[i].nb_content+"</td>";											
					notebooklist+="<td>";
					notebooklist+="<a style=\"margin-left:10px;\" title=\"查看\" target=\"dialog\" mask=\"true\" width=\"500\" height=\"300\" href=\"notebook/getNoteBookView.do?nbid="+obj.notebookdatalist[i].nb_id+"\" class=\"btnView\">查看</a>";
					notebooklist+="<a style=\"margin-left:5px;\" href=\"javascript:void(0)\" onclick=\"donotebookdelete('"+obj.notebookdatalist[i].nb_id+"')\" class=\"btnDel\">删除</a>";
					notebooklist+="</td>";
				}
				notebooklist+="</tr>";
			}			
		}
		$("#notebooklist").html(notebooklist);
		$("#notebooklist tr:odd").addClass("trbg");				
		$("#notebooklist tr").hover(
		  	function () {		 
		    	$(this).addClass("hover");
		  	},
		  	function () {
		    	$(this).removeClass("hover");
		  	}
		);
		$("#notebooklist tr").click(function(){
			$("#notebooklist tr").filter(".selected").removeClass("selected");
			$(this).addClass("selected");
		});
				
		//加载未阅读通知数据		
		var noticelist = "";		
		if(obj.noticedatalist.length>0){
			for(var i=0;i<obj.noticedatalist.length;i++){				
				noticelist+="<li style=\"margin-top:15px;\"><span>";
				noticelist+="<a href=\"business/notice/getNoticeView.do?nid="+obj.noticedatalist[i].n_id+"&ncnumber="+obj.noticedatalist[i].n_cnumber+"&ntypeview=m\"";
				noticelist+=" target=\"dialog\" width=\"860\" height=\"500\" mask=\"true\">"+(i+1)+"、"+obj.noticedatalist[i].n_title+"</a></span></li>";
			}
		}		
		$("#noticelist").html(noticelist);
	});
}

//记录本记录删除
function donotebookdelete(nbid){
	if(nbid=="") return false;	
	alertMsg.confirm("您确定要删除此记录？", {
		okCall: function(){
			$.post("notebook/getNoteBookDelete.do",{nbid:nbid},function(data){	
				var obj = eval("("+data+")"); 
				if(obj.mapReturn=="success"){
					alertMsg.correct("删除记录成功！");
					getnotebookdatalist();
				}
				else{
					alertMsg.error("删除记录失败，请检查！");
				}	
		  	});
  		}
	});
}

</script>
</head>

<body scroll="no">
	<div id="layout">    
    	<!--整个头部开始-->
		<div id="header">
			<div class="headerNav" >
				<a class="logo" href="#">标志</a>
				<ul class="nav">
					<li><a href="#">欢迎您用户：管理员</a></li>					
					<li><a href="password/getPassWordUpdateInit.do?uid=${infodata.a_id}" mask="true" target="dialog" width="600">密码修改</a></li>
					<li><a href="#">登录时间：${infodata.logindate}</a></li>
					<li><a href="exit.jspexit.jsp">退出</a></li>
				</ul>
			</div>	
		</div>
        <!--整个头部结束-->        

        <!--整个左边开始-->
		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
            <!--左边-->
			<div id="sidebar">
				<div class="toggleCollapse"><h2>上海注协行业管理平台</h2><div>收缩</div></div>
				<div class="accordion" fillSpace="sidebar">
					<div class="accordionHeader">
						<h2><span>Folder</span>协会菜单</h2>
					</div>                    
					<div class="accordionContent">
						<ul class="tree treeFolder">			
							<li><a>全科合格证申请管理</a>
								<ul>										
									<li><a href="manage/user/getUserQueryList.do" target="navTab" rel="employmentquery">申领人员汇总表</a></li>
								</ul>
							</li>
							<!-- 								
							<li><a>在线调查管理</a> 
								<ul>										
									<li><a href="manager/onlinesurvey/getOnlineSurveyTopicQueryList.do" target="navTab" rel="onlinesurveyquery">在线调查查询</a></li>
									<li><a href="manager/onlinesurvey/getOnlineSurveyStatisticsQueryList.do" target="navTab" rel="onlinesurveystics">在线调查统计</a></li>
								</ul>
							</li>	 -->			
						</ul>
					</div>
				</div>
			</div>
        	<!--左边-->
		</div>
	    <!--整个左边结束-->               
        
    <!--整个右边开始-->
	<div id="container">
		<div id="navTab" class="tabsPage">
			<!--101右边头部开始-->
			<div class="tabsPageHeader">
				<div class="tabsPageHeaderContent">
					<ul class="navTab-tab">
						<li tabid="main" class="main"><a href="javascript:;"><span><span class="home_icon">首页</span></span></a></li>
					</ul>
				</div>
				<div class="tabsLeft">left</div>
				<div class="tabsRight">right</div>
				<div class="tabsMore">more</div>
			</div>
            <!--101右边头部结束-->               
			<ul class="tabsMoreList">
				<li><a href="javascript:;">首页</a></li>
			</ul>
			<!--102-->
			<div class="navTab-panel tabsPageContent layoutBox">
				<div class="page unitBox">				                    
					<div class="accountInfo" layoutH="800">
						<p id="i0">您好，欢迎您进入上海市注册会计师协会平台，如遇问题请联系021-64223586赵立，谢谢！</p>
					</div>	
					<div layoutH="66" style="margin-left:5px;margin-top:5px;float:left;display:block;overflow:auto;width:470px;border:solid 1px #CCC;background:#fff">
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td>
									<div id="cal">
										<div id="top">公元&nbsp;<select></select>&nbsp;年&nbsp;<select></select>&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;农历<span></span>年&nbsp;[&nbsp;<span></span>年&nbsp;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="button" value="回到今天" title="点击后跳转回今天" style="padding:0px"/></div>
										<ul id="wk">
											<li>一</li><li>二</li><li>三</li><li>四</li><li>五</li><li><b>六</b></li><li><b>日</b></li>
										</ul>
										<div id="cm"></div>
										<div id="bm"></div>
									</div>	
									<script src="<%=url%>/js/calendar/bdcalendar.js"></script>			 
								</td>
							</tr>
						</table>
						<c:if test="${infodata.a_type=='1'}">
							<div class="pos">未阅读内部通知</div>					
							<div style="overflow:visible;;">    
								 <ul class="hlist1" id="noticelist"></ul>
							</div>
						</c:if>
					</div>
					<div class="unitBox" style="margin-left:490px;margin-top:5px;">
						<div class="pageContent" style="border-left:1px #CCC solid;border-right:1px #B8D0D6 solid;border-bottom:1px #B8D0D6 solid;">
							<div class="panelBar">
								<ul class="toolBar">
									<li><a class="add" href="notebook/notebook_create.jsp" mask="true" target="dialog" width="500" height="300"><span>新增记事本</span></a></li>
								</ul>		
							</div>
							<div class="pageFormContent" layoutH="110">
								<table class="list" width="100%">
									<thead>
										<tr>
											<th align="center" width="7%">序号</th>
											<th align="center" width="13%">日期</th>
											<th align="center" width="70%">内容</th>											
											<th align="center" width="10%">操作</th>
										</tr>
									</thead>
									<tbody id="notebooklist"></tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--102-->
		</div>
	</div>      
	<!--整个右边结束-->
</div>    
<!--底部开始-->
<div id="footer">Copyright &copy; 2020<a href="#">上海越迈网络科技有限公司--技术支持</a></div>
<!--底部结束-->
</body>
</html>


